

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>MDS 配置参考 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/doctools.js"></script>
        <script src="../../_static/sphinx_highlight.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="ceph-mds -- Ceph 元数据服务器守护进程" href="../../man/8/ceph-mds/" />
    <link rel="prev" title="MDS 缓存配置" href="../cache-configuration/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../" class="icon icon-home" aria-label="Home"></a></li>
          <li class="breadcrumb-item"><a href="../">Ceph 文件系统</a></li>
      <li class="breadcrumb-item active">MDS 配置参考</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../_sources/cephfs/mds-config-ref.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../" class="icon icon-home"> Ceph
          

          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../start/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../">Ceph 文件系统</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../#cephfs">CephFS 入门</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../#id4">管理</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../createfs/"> 创建 CephFS 文件系统</a></li>
<li class="toctree-l3"><a class="reference internal" href="../administration/"> 管理命令</a></li>
<li class="toctree-l3"><a class="reference internal" href="../multifs/"> 创建多个文件系统</a></li>
<li class="toctree-l3"><a class="reference internal" href="../add-remove-mds/"> 配备、增加、删除 MDS</a></li>
<li class="toctree-l3"><a class="reference internal" href="../standby/">术语</a></li>
<li class="toctree-l3"><a class="reference internal" href="../standby/#mds">MDS 守护进程的引用</a></li>
<li class="toctree-l3"><a class="reference internal" href="../standby/#id3">故障切换的管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="../standby/#standby-replay">热备（ standby-replay ）的配置</a></li>
<li class="toctree-l3"><a class="reference internal" href="../standby/#mds-join-fs">配置 MDS 与文件系统的亲和性</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cache-configuration/"> MDS 缓存配置</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#"> MDS 配置选项</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../man/8/ceph-mds/"> ceph-mds 手册页</a></li>
<li class="toctree-l3"><a class="reference internal" href="../nfs/"> 通过 NFS 导出</a></li>
<li class="toctree-l3"><a class="reference internal" href="../app-best-practices/"> 应用最佳实践</a></li>
<li class="toctree-l3"><a class="reference internal" href="../fs-volumes/"> FS 卷和子卷</a></li>
<li class="toctree-l3"><a class="reference internal" href="../quota/"> CephFS 配额管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="../health-messages/"> 健康消息</a></li>
<li class="toctree-l3"><a class="reference internal" href="../upgrading/">升级 MDS 集群</a></li>
<li class="toctree-l3"><a class="reference internal" href="../upgrading/#firefly-jewel">升级比 Firefly 老的文件系统，需过 Jewel 这个槛</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cephfs-top/"> CephFS Top 工具</a></li>
<li class="toctree-l3"><a class="reference internal" href="../snap-schedule/"> 定时快照</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cephfs-mirroring/"> CephFS 快照镜像</a></li>
<li class="toctree-l3"><a class="reference internal" href="../purge-queue/"> 清理队列</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../#id5">挂载 CephFS</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id6">CephFS 内幕</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id7">故障排除和灾难恢复</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id9">更多细节</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../monitoring/">监控概览</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../hardware-monitoring/">硬件监控</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <section id="mds">
<h1>MDS 配置参考<a class="headerlink" href="#mds" title="Permalink to this heading"></a></h1>
<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_cache_mid">
<span class="sig-name descname"><span class="pre">mds_cache_mid</span></span><a class="headerlink" href="#confval-mds_cache_mid" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>把新条目插入缓存 LRU 时的插入点（从顶端）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.7</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_dir_max_commit_size">
<span class="sig-name descname"><span class="pre">mds_dir_max_commit_size</span></span><a class="headerlink" href="#confval-mds_dir_max_commit_size" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>一个目录更新超过多大时要拆分为较小的事务（ MB ）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">10</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_dir_max_entries">
<span class="sig-name descname"><span class="pre">mds_dir_max_entries</span></span><a class="headerlink" href="#confval-mds_dir_max_entries" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>目录里的最大条数，超过时再新建就会被拒绝， 遇到 ENOSPC 错误。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">uint</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_decay_halflife">
<span class="sig-name descname"><span class="pre">mds_decay_halflife</span></span><a class="headerlink" href="#confval-mds_decay_halflife" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>用于均衡的各个目录、其热度计数器的衰减速度。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">5.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_beacon_interval">
<span class="sig-name descname"><span class="pre">mds_beacon_interval</span></span><a class="headerlink" href="#confval-mds_beacon_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 和 监视器们之间发送信标消息的间隔秒数。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">4.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_beacon_grace">
<span class="sig-name descname"><span class="pre">mds_beacon_grace</span></span><a class="headerlink" href="#confval-mds_beacon_grace" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>多久没收到信标消息 Ceph 就认为 MDS 落后了 （并可能替换它）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">15.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mon_mds_blocklist_interval">
<span class="sig-name descname"><span class="pre">mon_mds_blocklist_interval</span></span><a class="headerlink" href="#confval-mon_mds_blocklist_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>OSD 运行图里的 MDS 失败后，把它留在黑名单里的时间。 注意，此选项控制着失败的 OSD 在 OSDMap 黑名单里呆多长时间，
它对管理员手动加进黑名单的东西没影响。 例如， <code class="docutils literal notranslate"><span class="pre">ceph</span> <span class="pre">osd</span> <span class="pre">blocklist</span> <span class="pre">add</span></code> 仍将遵循默认的黑名单时间。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1</span> <span class="pre">day</span></code></p>
</dd>
<dt class="field-odd">min<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">1_hr</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_reconnect_timeout">
<span class="sig-name descname"><span class="pre">mds_reconnect_timeout</span></span><a class="headerlink" href="#confval-mds_reconnect_timeout" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 处于重建连接恢复状态时，客户端重连的超时时间， 秒数。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">45.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_tick_interval">
<span class="sig-name descname"><span class="pre">mds_tick_interval</span></span><a class="headerlink" href="#confval-mds_tick_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 执行内部周期性任务的间隔。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">5.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_dirstat_min_interval">
<span class="sig-name descname"><span class="pre">mds_dirstat_min_interval</span></span><a class="headerlink" href="#confval-mds_dirstat_min_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>为避免传播沿着目录树上行的 stat 递归操作， 尝试的最小间隔秒数。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_scatter_nudge_interval">
<span class="sig-name descname"><span class="pre">mds_scatter_nudge_interval</span></span><a class="headerlink" href="#confval-mds_scatter_nudge_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>dirstat 变更传播多快。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">5.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_client_prealloc_inos">
<span class="sig-name descname"><span class="pre">mds_client_prealloc_inos</span></span><a class="headerlink" href="#confval-mds_client_prealloc_inos" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>为每个客户端会话预分配索引节点号的个数。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1000</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_early_reply">
<span class="sig-name descname"><span class="pre">mds_early_reply</span></span><a class="headerlink" href="#confval-mds_early_reply" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>请求成功提交到日志前 MDS 是否允许客户端先看到请求结果。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">true</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_default_dir_hash">
<span class="sig-name descname"><span class="pre">mds_default_dir_hash</span></span><a class="headerlink" href="#confval-mds_default_dir_hash" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>用于哈希文件在目录碎片中分布情况的函数。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">2</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_log_skip_corrupt_events">
<span class="sig-name descname"><span class="pre">mds_log_skip_corrupt_events</span></span><a class="headerlink" href="#confval-mds_log_skip_corrupt_events" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>在重放日志时， MDS 是否应跳过损坏的日志事件。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_sample_interval">
<span class="sig-name descname"><span class="pre">mds_bal_sample_interval</span></span><a class="headerlink" href="#confval-mds_bal_sample_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>对目录热度取样的频率 （作为分片决策的依据）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">3.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_replicate_threshold">
<span class="sig-name descname"><span class="pre">mds_bal_replicate_threshold</span></span><a class="headerlink" href="#confval-mds_bal_replicate_threshold" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>最低多少热度时 Ceph 就把元数据复制到其它节点。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">8000.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_unreplicate_threshold">
<span class="sig-name descname"><span class="pre">mds_bal_unreplicate_threshold</span></span><a class="headerlink" href="#confval-mds_bal_unreplicate_threshold" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>热度低到多少时 Ceph 就不再把元数据复制到其它节点。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_split_size">
<span class="sig-name descname"><span class="pre">mds_bal_split_size</span></span><a class="headerlink" href="#confval-mds_bal_split_size" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>目录尺寸大到多少时 MDS 就把目录分片拆分成更小的片段。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">10000</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_split_rd">
<span class="sig-name descname"><span class="pre">mds_bal_split_rd</span></span><a class="headerlink" href="#confval-mds_bal_split_rd" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>目录的最大读取热度达到多大时 Ceph 将拆分此片段。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">25000.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_split_wr">
<span class="sig-name descname"><span class="pre">mds_bal_split_wr</span></span><a class="headerlink" href="#confval-mds_bal_split_wr" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>目录的最大写热度达到多大时 Ceph 将 拆分此片段。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">10000.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_split_bits">
<span class="sig-name descname"><span class="pre">mds_bal_split_bits</span></span><a class="headerlink" href="#confval-mds_bal_split_bits" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>把一个目录片段再分割成多大。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">3</span></code></p>
</dd>
<dt class="field-odd">allowed range<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">[1,</span> <span class="pre">24]</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_merge_size">
<span class="sig-name descname"><span class="pre">mds_bal_merge_size</span></span><a class="headerlink" href="#confval-mds_bal_merge_size" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>目录尺寸小到多少时 Ceph 就尝试合并邻近的目录片段。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">50</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_interval">
<span class="sig-name descname"><span class="pre">mds_bal_interval</span></span><a class="headerlink" href="#confval-mds_bal_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 服务器之间交替负荷的频率，秒。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">10</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_fragment_interval">
<span class="sig-name descname"><span class="pre">mds_bal_fragment_interval</span></span><a class="headerlink" href="#confval-mds_bal_fragment_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>一个片段可以被拆分或合并，在执行分片变更前延迟的时间， 单位为秒。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">5</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_fragment_fast_factor">
<span class="sig-name descname"><span class="pre">mds_bal_fragment_fast_factor</span></span><a class="headerlink" href="#confval-mds_bal_fragment_fast_factor" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>分片的尺寸超过拆分尺寸阈值达到多少比例就立即执行拆分（跳过 fragment interval 配置的延时）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1.5</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_fragment_size_max">
<span class="sig-name descname"><span class="pre">mds_bal_fragment_size_max</span></span><a class="headerlink" href="#confval-mds_bal_fragment_size_max" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>一个片段的最大尺寸， 要加入新条目时会收到 ENOSPC 拒绝代码。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">100000</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_idle_threshold">
<span class="sig-name descname"><span class="pre">mds_bal_idle_threshold</span></span><a class="headerlink" href="#confval-mds_bal_idle_threshold" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>热度低于此值时 Ceph 就把子树 迁移回它的父节点。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_max">
<span class="sig-name descname"><span class="pre">mds_bal_max</span></span><a class="headerlink" href="#confval-mds_bal_max" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>均衡器迭代到这么多次时 Ceph 就停止。 （仅适用于测试）</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">-1</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_max_until">
<span class="sig-name descname"><span class="pre">mds_bal_max_until</span></span><a class="headerlink" href="#confval-mds_bal_max_until" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>均衡器运行多久就停止，秒数。 （仅适用于测试）</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">-1</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_mode">
<span class="sig-name descname"><span class="pre">mds_bal_mode</span></span><a class="headerlink" href="#confval-mds_bal_mode" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>计算 MDS 负载的方法。</p>
<blockquote>
<div><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">0</span></code> = 混合；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">1</span></code> = 请求速率和延时；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">2</span></code> = CPU 负载。</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_min_rebalance">
<span class="sig-name descname"><span class="pre">mds_bal_min_rebalance</span></span><a class="headerlink" href="#confval-mds_bal_min_rebalance" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>子树热度最小多少时开始迁移。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.1</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_overload_epochs">
<span class="sig-name descname"><span class="pre">mds_bal_overload_epochs</span></span><a class="headerlink" href="#confval-mds_bal_overload_epochs" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>The number of epochs the overload lasts before Ceph migrates, setting
it to a higher value can avoid frequent migrations caused by load
fluctuations.</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">2</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_min_start">
<span class="sig-name descname"><span class="pre">mds_bal_min_start</span></span><a class="headerlink" href="#confval-mds_bal_min_start" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>子树热度最小多少时 Ceph 才去搜索子树。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.2</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_need_min">
<span class="sig-name descname"><span class="pre">mds_bal_need_min</span></span><a class="headerlink" href="#confval-mds_bal_need_min" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>允许接受目标子树片段的最小尺寸。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.8</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_need_max">
<span class="sig-name descname"><span class="pre">mds_bal_need_max</span></span><a class="headerlink" href="#confval-mds_bal_need_max" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>允许接受目标子树片段的最大尺寸。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1.2</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_midchunk">
<span class="sig-name descname"><span class="pre">mds_bal_midchunk</span></span><a class="headerlink" href="#confval-mds_bal_midchunk" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>尺寸大于目标子树的子树， Ceph 将迁移它。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.3</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_bal_minchunk">
<span class="sig-name descname"><span class="pre">mds_bal_minchunk</span></span><a class="headerlink" href="#confval-mds_bal_minchunk" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>尺寸小于目标子树的子树， Ceph 将忽略它。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0.001</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_replay_interval">
<span class="sig-name descname"><span class="pre">mds_replay_interval</span></span><a class="headerlink" href="#confval-mds_replay_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 处于 standby-replay 模式（热备）时的 日志滚动间隔。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">float</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">1.0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_shutdown_check">
<span class="sig-name descname"><span class="pre">mds_shutdown_check</span></span><a class="headerlink" href="#confval-mds_shutdown_check" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS 关闭期间缓存更新间隔。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_thrash_exports">
<span class="sig-name descname"><span class="pre">mds_thrash_exports</span></span><a class="headerlink" href="#confval-mds_thrash_exports" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 会在节点间随机地导出子树。（仅用于测试）</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_thrash_fragments">
<span class="sig-name descname"><span class="pre">mds_thrash_fragments</span></span><a class="headerlink" href="#confval-mds_thrash_fragments" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 会随机地分片或合并目录。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_dump_cache_on_map">
<span class="sig-name descname"><span class="pre">mds_dump_cache_on_map</span></span><a class="headerlink" href="#confval-mds_dump_cache_on_map" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 会把各 MDSMap 的 MDS 缓存内容转储到一文件。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_dump_cache_after_rejoin">
<span class="sig-name descname"><span class="pre">mds_dump_cache_after_rejoin</span></span><a class="headerlink" href="#confval-mds_dump_cache_after_rejoin" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 重新加入缓存（恢复期间）后 会把 MDS 缓存内容转储到一文件。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_verify_scatter">
<span class="sig-name descname"><span class="pre">mds_verify_scatter</span></span><a class="headerlink" href="#confval-mds_verify_scatter" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将认为各种传播/聚集常量都是 <code class="docutils literal notranslate"><span class="pre">true</span></code> （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_debug_scatterstat">
<span class="sig-name descname"><span class="pre">mds_debug_scatterstat</span></span><a class="headerlink" href="#confval-mds_debug_scatterstat" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将认为各种递归统计常量都是 <code class="docutils literal notranslate"><span class="pre">true</span></code> （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_debug_frag">
<span class="sig-name descname"><span class="pre">mds_debug_frag</span></span><a class="headerlink" href="#confval-mds_debug_frag" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将在方便时校验目录分段常量（仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_debug_auth_pins">
<span class="sig-name descname"><span class="pre">mds_debug_auth_pins</span></span><a class="headerlink" href="#confval-mds_debug_auth_pins" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>常量 debug auth pin （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_debug_subtrees">
<span class="sig-name descname"><span class="pre">mds_debug_subtrees</span></span><a class="headerlink" href="#confval-mds_debug_subtrees" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>常量 debug subtree （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_mdstable_at">
<span class="sig-name descname"><span class="pre">mds_kill_mdstable_at</span></span><a class="headerlink" href="#confval-mds_kill_mdstable_at" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将向 MDSTable 代码注入 MDS 失败事件 （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_export_at">
<span class="sig-name descname"><span class="pre">mds_kill_export_at</span></span><a class="headerlink" href="#confval-mds_kill_export_at" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将向子树导出代码注入 MDS 失败事件 （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_import_at">
<span class="sig-name descname"><span class="pre">mds_kill_import_at</span></span><a class="headerlink" href="#confval-mds_kill_import_at" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将向子树导入代码注入 MDS 失败事件 （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_link_at">
<span class="sig-name descname"><span class="pre">mds_kill_link_at</span></span><a class="headerlink" href="#confval-mds_kill_link_at" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将向硬链接代码注入 MDS 失败事件 （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_rename_at">
<span class="sig-name descname"><span class="pre">mds_kill_rename_at</span></span><a class="headerlink" href="#confval-mds_kill_rename_at" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将向重命名代码注入 MDS 失败事件 （仅适合开发者）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_inject_skip_replaying_inotable">
<span class="sig-name descname"><span class="pre">mds_inject_skip_replaying_inotable</span></span><a class="headerlink" href="#confval-mds_inject_skip_replaying_inotable" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>MDS will skip replaying the inotable when replaying the journal logs.
(for testing only).</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_kill_after_journal_logs_flushed">
<span class="sig-name descname"><span class="pre">mds_kill_after_journal_logs_flushed</span></span><a class="headerlink" href="#confval-mds_kill_after_journal_logs_flushed" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>The primary MDS will crash just after the mknod/openc journal logs are
flushed to the pool. (for testing only).</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_wipe_sessions">
<span class="sig-name descname"><span class="pre">mds_wipe_sessions</span></span><a class="headerlink" href="#confval-mds_wipe_sessions" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将在启动时删除所有客户端会话 （仅适合测试）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_wipe_ino_prealloc">
<span class="sig-name descname"><span class="pre">mds_wipe_ino_prealloc</span></span><a class="headerlink" href="#confval-mds_wipe_ino_prealloc" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Ceph 将在启动时删除索引节点号预分配元数据 （仅适合测试）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">false</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_skip_ino">
<span class="sig-name descname"><span class="pre">mds_skip_ino</span></span><a class="headerlink" href="#confval-mds_skip_ino" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>启动时要跳过的索引节点号数量 （仅适合测试）。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">int</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_min_caps_per_client">
<span class="sig-name descname"><span class="pre">mds_min_caps_per_client</span></span><a class="headerlink" href="#confval-mds_min_caps_per_client" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>设置一个客户端可以持有的最小容量。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">uint</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">100</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_symlink_recovery">
<span class="sig-name descname"><span class="pre">mds_symlink_recovery</span></span><a class="headerlink" href="#confval-mds_symlink_recovery" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>把符号链接目标存储在符号链接文件的第一个数据对象里。 这样就能用恢复工具来恢复符号链接了。</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">bool</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">true</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

<dl class="std confval">
<dt class="sig sig-object std" id="confval-mds_extraordinary_events_dump_interval">
<span class="sig-name descname"><span class="pre">mds_extraordinary_events_dump_interval</span></span><a class="headerlink" href="#confval-mds_extraordinary_events_dump_interval" title="Permalink to this definition"></a></dt>
<dd><blockquote>
<div><p>Interval in seconds for dumping the recent in-memory logs when there
is an extra-ordinary event. The default is <code class="docutils literal notranslate"><span class="pre">0</span></code> (disabled). The log
level should be <code class="docutils literal notranslate"><span class="pre">&lt;</span> <span class="pre">10</span></code> and the gather level should be <code class="docutils literal notranslate"><span class="pre">&gt;=10</span></code> in
debug_mds for enabling this option.</p>
<dl class="field-list simple">
<dt class="field-odd">type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">secs</span></code></p>
</dd>
<dt class="field-even">default<span class="colon">:</span></dt>
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">0</span></code></p>
</dd>
<dt class="field-odd">allowed range<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">[0,</span> <span class="pre">60]</span></code></p>
</dd>
</dl>
</div></blockquote>
</dd></dl>

</section>



<div id="support-the-ceph-foundation" class="admonition note">
  <p class="first admonition-title">Brought to you by the Ceph Foundation</p>
  <p class="last">The Ceph Documentation is a community resource funded and hosted by the non-profit <a href="https://ceph.io/en/foundation/">Ceph Foundation</a>. If you would like to support this and our other efforts, please consider <a href="https://ceph.io/en/foundation/join/">joining now</a>.</p>
</div>


           </div>
           
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="../cache-configuration/" class="btn btn-neutral float-left" title="MDS 缓存配置" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="../../man/8/ceph-mds/" class="btn btn-neutral float-right" title="ceph-mds -- Ceph 元数据服务器守护进程" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).</p>
  </div>

   

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>